package xyz.xtt.exchange.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.annotation.PostConstruct;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class EntitlementVo {
        @Schema(description = "权益描述")

        private String description;

        @Schema(description = "获取条件")
        private String requirement;

        @Schema(description = "权益数量")
        @Min(value = 3, message = "数量上限为999")
        @Max(value = 999, message = "数量下限为1")
        private BigDecimal amount;

        @Schema(description = "销兑方")
        private Long acceptUid;

        @Schema(description = "销兑开始时间")
        private Long acceptStartTime;
        @Schema(description = "销兑结束时间")
        private Long acceptEndTime;
        @Schema(description = "销兑接口参数")
        private String requestParam;
        @Schema(description = "销兑接口")
        private String requestUrl;

        @Schema(description = "第三方业务ID")
        private String bizId;

}
